package c3p0;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

/*
   c3p0的演示
* */
public class c3p0Demo01 {
    public static void main(String[] args) throws SQLException {
        // 创建数据库连接池对象
        DataSource aa = new ComboPooledDataSource();
        //获取连接对象
         Connection bb = aa.getConnection();
        System.out.println(bb);
    }
}
